package test5;

public class Student {
    private String Id;
    private String name;
    private Score chineseScore;
    private Score mathScore;
    private Score physicsScore;
    private double RegularGradeAverage;
    private double FinalGradeAverage;

    public Student(String Id,String name,Score chineseScore,Score mathScore,Score physicsScore,double RegularGradeAverage,double FinalGradeAverage){
        this.Id=Id;
        this.name=name;
        this.chineseScore=chineseScore;
        this.mathScore=mathScore;
        this.physicsScore=physicsScore;
        this.RegularGradeAverage=RegularGradeAverage;
        this.FinalGradeAverage=FinalGradeAverage;
    }

    public double getRegularGradeAverage() {
        return RegularGradeAverage;
    }

    public void setRegularGradeAverage(double regularGradeAverage) {
        RegularGradeAverage = regularGradeAverage;
    }

    public double getFinalGradeAverage() {
        return FinalGradeAverage;
    }

    public void setFinalGradeAverage(double finalGradeAverage) {
        FinalGradeAverage = finalGradeAverage;
    }

    public String getId() {
        return Id;
    }

    public void setId(String id) {
        Id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Score getChineseScore() {
        return chineseScore;
    }

    public void setChineseScore(Score chineseScore) {
        this.chineseScore = chineseScore;
    }

    public Score getMathScore() {
        return mathScore;
    }

    public void setMathScore(Score mathScore) {
        this.mathScore = mathScore;
    }

    public Score getPhysicsScore() {
        return physicsScore;
    }

    public void setPhysicsScore(Score physicsScore) {
        this.physicsScore = physicsScore;
    }

    public int TotalScore(){
        return chineseScore.total()+mathScore.total()+physicsScore.total();
    }

    public double Average(){
        int total=TotalScore();
        return (double) total/3;
    }



}
